<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/1/13
 * Time: 19:18
 */
namespace common\sources\write\rechargerecord;

use Yii;

class RechargeRecordAccess implements IRechargeRecordAccess
{
    public function addRechargeRecord($data)
    {
        return Yii::$app->db->createCommand()->insert('recharge_record', [
            'uid' => $data['uid'],
            'type' => $data['type'],
            'money' => $data['money'],
            'merchant_order' => $data['merchant_order'],
            'pay_status' => $data['pay_status'],
            'remark' => $data['remark'],
            'create_time' => time()
        ])->execute();
    }
}